﻿<%@ Page Language="VB" MasterPageFile="~/masterpages/MaestraRegistro.master" AutoEventWireup="false"
    CodeFile="general.aspx.vb" Inherits="Registro_general" Title="General" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../formulario.css" rel="Stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" EnableScriptLocalization="true"
        EnableScriptGlobalization="true">
    </ajaxToolkit:ToolkitScriptManager>
    <div class="editar">
        <div class="formulario">
            <asp:Label ID="lblExcepcion" runat="server"></asp:Label><br />
            <table width="40%" style="font-family: Calibri, Arial; font-weight: bold; font-size: 16px"
                align="center">
                <tr>
                    <td class="FormHeaderTD">
                        <center>
                            <asp:Label ID="lblAnimal" runat="server" Text="Label"></asp:Label></center>
                    </td>
                </tr>
            </table>
            <fieldset>
                <legend>Identificacion</legend>
                <br />
                <asp:UpdatePanel ID="upPadre" runat="server">
                    <ContentTemplate>
                        <table align="center" width="820px">
                            <tr>
                                <td colspan="7" align="right" class="FormHeaderTD">
                                    Hierro * &nbsp;
                                    <asp:DropDownList ID="ddlHierro" runat="server" AppendDataBoundItems="True" DataTextField="catnom"
                                        DataValueField="catcve" TabIndex="1">
                                        <asp:ListItem></asp:ListItem>
                                    </asp:DropDownList>
                                    &nbsp; Sexo *&nbsp;
                                    <asp:DropDownList ID="ddlSexo" runat="server" TabIndex="2">
                                        <asp:ListItem></asp:ListItem>
                                        <asp:ListItem Value="T">Toro</asp:ListItem>
                                        <asp:ListItem Value="V">Vaca</asp:ListItem>
                                    </asp:DropDownList>
                                    &nbsp;&nbsp; Nacimiento*&nbsp;
                                    <asp:TextBox ID="txtFechaNac" runat="server" BackColor="#F0F0F0" BorderColor="#CCCCCC"
                                        BorderWidth="1px" MaxLength="1" Style="text-align: justify" ValidationGroup="MKE"
                                        Width="70px" />
                                    <ajaxToolkit:MaskedEditExtender ID="MaskedEditExtender5" runat="server" AcceptNegative="Left"
                                        DisplayMoney="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" MaskType="Date"
                                        MessageValidatorTip="true" OnFocusCssClass="MaskedEditFocus" OnInvalidCssClass="MaskedEditError"
                                        TargetControlID="txtFechaNac" />
                                    <ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server" PopupButtonID="ImgBntCalc"
                                        TargetControlID="txtFechaNac" TodaysDateFormat="dd-MM-yyyy" />
                                    &nbsp;<asp:ImageButton ID="ImgBntCalc" runat="server" CausesValidation="False" ImageUrl="~/images/Calendar_scheduleHS.png" />
                                    <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator5" runat="server" ControlExtender="MaskedEditExtender5"
                                        ControlToValidate="txtFechaNac" Display="Dynamic" EmptyValueBlurredText="Fecha requerida"
                                        EmptyValueMessage="La fecha es requerida" ErrorMessage="error" InvalidValueBlurredMessage="* Fecha invalida"
                                        InvalidValueMessage="Fecha Invalida" TooltipMessage="dd/mm/aaaa" ValidationGroup="MKE" />
                                </td>
                            </tr>
                            <tr>
                                <td class="FormHeaderTD">
                                    Número *
                                </td>
                                <td class="DataTD">
                                    <asp:TextBox ID="txtNumero" runat="server" MaxLength="4" TabIndex="3" ToolTip="Ingrese el numero del animal a registrar"
                                        Width="40px" BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px" Enabled="False">14</asp:TextBox>
                                    &nbsp;<asp:TextBox ID="txtLetra" runat="server" MaxLength="2" TabIndex="4" ToolTip="Ingresa la letra del animal a registrar"
                                        Width="20px" BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px" Enabled="False">L</asp:TextBox>
                                    &nbsp;<asp:TextBox ID="txtAno" runat="server" MaxLength="4" TabIndex="5" ToolTip="Ingrese el año de nacimiento  del animal a registrar"
                                        Width="40px" BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px" Enabled="False">2010</asp:TextBox>&nbsp;<asp:TextBox
                                            ID="txtNombre" runat="server" CssClass="text" MaxLength="50" ToolTip="Ingresa el nombre del animal a registrar"
                                            Width="150px"></asp:TextBox>
                                </td>
                                <td class="DataTD">
                                    AC:
                                    <asp:TextBox ID="txtTientaAC" runat="server" CssClass="text" MaxLength="2" Width="20px">SS</asp:TextBox>&nbsp;AP:<b>
                                    </b>
                                    <asp:TextBox ID="txtTientaAP" runat="server" CssClass="text" MaxLength="2" Width="20px"></asp:TextBox>
                                </td>
                                <td class="DataTD">
                                    AC:<b> </b>
                                    <asp:TextBox ID="txtLidiaAC" runat="server" CssClass="text" MaxLength="2" Width="20px"></asp:TextBox>&nbsp;AP:<b>
                                    </b>
                                    <asp:TextBox ID="txtLidiaAP" runat="server" CssClass="text" MaxLength="2" Width="20px"></asp:TextBox>
                                </td>
                                <td class="DataTD">
                                    %CS:<b> </b>
                                    <asp:TextBox ID="txtPorcienCS" runat="server" CssClass="text" Width="30px">2.38</asp:TextBox>
                                </td>
                                <td class="FormHeaderTD">
                                    Familia:
                                </td>
                                <td class="DataTD">
                                    <asp:TextBox ID="txtFamilia" runat="server" CssClass="text" Width="30px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="FormHeaderTD">
                                    Padre
                                </td>
                                <td class="DataTD">
                                    <asp:TextBox ID="txtNoPadre" runat="server" CssClass="text" MaxLength="4" ToolTip="Ingrese el numero del padre del animal a registrar"
                                        Width="40px">14</asp:TextBox>&nbsp;<asp:TextBox ID="txtLtraPadre" runat="server"
                                            CssClass="text" MaxLength="2" ToolTip="Ingresa la letra del  padre  del animal a registrar"
                                            Width="20px">L</asp:TextBox>&nbsp;<asp:TextBox ID="txtAnoPadre" runat="server" CssClass="text"
                                                MaxLength="4" ToolTip="Ingrese el año del  padre  del animal a registrar" Width="40px">2010</asp:TextBox>&nbsp;<asp:TextBox
                                                    ID="txtNombrePadre" runat="server" CssClass="text" MaxLength="50" ReadOnly="True"
                                                    Width="150px" BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px"></asp:TextBox><asp:ImageButton
                                                        ID="imgbtnPadre" runat="server" ImageUrl="~/images/icon-find.png" />
                                </td>
                                <td class="DataTD">
                                    AC:<b> </b>
                                    <asp:TextBox ID="txtTientaACPadre" runat="server" CssClass="text" MaxLength="2" Width="20px"
                                        BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px" ReadOnly="True"></asp:TextBox>&nbsp;AP:<b>
                                        </b>
                                    <asp:TextBox ID="txtTientaAPPadre" runat="server" CssClass="text" MaxLength="2" Width="20px"
                                        BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px" ReadOnly="True"></asp:TextBox>
                                </td>
                                <td class="DataTD">
                                    AC:<b> </b>
                                    <asp:TextBox ID="txtLidiaACPadre" runat="server" CssClass="text" MaxLength="2" Width="20px"
                                        BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px" ReadOnly="True"></asp:TextBox>&nbsp;AP:<b>
                                        </b>
                                    <asp:TextBox ID="txtLidiaAPPadre" runat="server" CssClass="text" MaxLength="2" Width="20px"
                                        BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px" ReadOnly="True"></asp:TextBox>
                                </td>
                                <td class="DataTD">
                                    %CS:<b> </b>
                                    <asp:TextBox ID="txtPorcienCSPadre" runat="server" CssClass="text" ReadOnly="True"
                                        Width="30px" BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px"></asp:TextBox>
                                </td>
                                <td align="right" class="FormHeaderTD">
                                    Hijos:
                                </td>
                                <td class="DataTD">
                                    <b>
                                        <asp:TextBox ID="txtHijos" runat="server" CssClass="text" Width="30px"></asp:TextBox></b>
                                </td>
                            </tr>
                            <tr>
                                <td class="FormHeaderTD">
                                    Madre
                                </td>
                                <td class="DataTD">
                                    <asp:TextBox ID="txtNoMadre" runat="server" CssClass="text" MaxLength="4" TabIndex="6"
                                        ToolTip="Ingrese el numero del madre del animal a registrar" Width="40px">14</asp:TextBox>&nbsp;<asp:TextBox
                                            ID="txtLtraMadre" runat="server" CssClass="text" MaxLength="2" TabIndex="7" ToolTip="Ingresa la letra del madre  del animal a registrar"
                                            Width="20px">L</asp:TextBox>&nbsp;<asp:TextBox ID="txtAnoMadre" runat="server" CssClass="text"
                                                MaxLength="4" TabIndex="8" ToolTip="Ingrese el año del  madre  del animal a registrar"
                                                Width="40px">2010</asp:TextBox>&nbsp;<asp:TextBox ID="txtNombreMadre" runat="server"
                                                    CssClass="text" MaxLength="50" ReadOnly="True" Width="150px" BackColor="#F0F0F0"
                                                    BorderColor="#CCCCCC" BorderWidth="1px"></asp:TextBox><asp:ImageButton ID="imgbtnMadre"
                                                        runat="server" ImageUrl="~/images/icon-find.png" />
                                </td>
                                <td class="DataTD">
                                    AC:<b> </b>
                                    <asp:TextBox ID="txtTientaACMadre" runat="server" CssClass="text" MaxLength="2" Width="20px"
                                        BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px" ReadOnly="True"></asp:TextBox>&nbsp;AP:<b>
                                        </b>
                                    <asp:TextBox ID="txtTientaAPMadre" runat="server" CssClass="text" MaxLength="2" Width="20px"
                                        BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px" ReadOnly="True"></asp:TextBox>
                                </td>
                                <td class="DataTD">
                                    AC:<b> </b>
                                    <asp:TextBox ID="txtLidiaACMadre" runat="server" CssClass="text" MaxLength="2" Width="20px"
                                        BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px" ReadOnly="True"></asp:TextBox>&nbsp;AP:<b>
                                        </b>
                                    <asp:TextBox ID="txtLidiaAPMadre" runat="server" CssClass="text" MaxLength="2" Width="20px"
                                        BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px" ReadOnly="True"></asp:TextBox>
                                </td>
                                <td class="DataTD">
                                    %CS:<b> </b>
                                    <asp:TextBox ID="txtPorcienCSMadre" runat="server" CssClass="text" ReadOnly="True"
                                        Width="30px" BackColor="#F0F0F0" BorderColor="#CCCCCC" BorderWidth="1px"></asp:TextBox>
                                </td>
                                <td align="right" class="FormHeaderTD">
                                    Hijas:
                                </td>
                                <td class="DataTD">
                                    <b>
                                        <asp:TextBox ID="txtHijas" runat="server" CssClass="text" Width="30px"></asp:TextBox></b>
                                </td>
                            </tr>
                            <tr>
                                <td class="FormHeaderTD">
                                    Abuelo Mat<b> </b>
                                </td>
                                <td class="DataTD">
                                    <asp:TextBox ID="txtAbuelo" runat="server" BackColor="#F0F0F0" BorderColor="#CCCCCC"
                                        BorderWidth="1px" ReadOnly="True" Width="83px" CssClass="text">123C2010</asp:TextBox>&nbsp;&nbsp;<asp:TextBox
                                            ID="txtNombreMadre0" runat="server" BackColor="#F0F0F0" BorderColor="#CCCCCC"
                                            BorderWidth="1px" MaxLength="50" ReadOnly="True" Width="150px" CssClass="text"></asp:TextBox>
                                </td>
                                <td class="DataTD">
                                    AC:<b> </b>
                                    <asp:TextBox ID="txtTientaACAbuelo" runat="server" BackColor="#F0F0F0" BorderColor="#CCCCCC"
                                        BorderWidth="1px" MaxLength="2" Width="20px" CssClass="text" ReadOnly="True"></asp:TextBox>&nbsp;AP:<b>
                                        </b>
                                    <asp:TextBox ID="txtTientaAPAbuelo" runat="server" BackColor="#F0F0F0" BorderColor="#CCCCCC"
                                        BorderWidth="1px" MaxLength="2" Width="20px" CssClass="text" ReadOnly="True"></asp:TextBox>
                                </td>
                                <td class="DataTD" colspan="4">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <br />
            </fieldset>
        </div>
        <div class="formulario">
            <fieldset>
                <legend>Generales</legend>
                <br />
                <table align="center" class="FormTABLE" width="820px">
                    <tr>
                        <td class="FormHeaderTD">
                            Edad:
                        </td>
                        <td class="FormHeaderTD">
                            Ubicación:<br />
                        </td>
                        <td class="FormHeaderTD">
                            Propiedad:<br />
                        </td>
                        <td class="FormHeaderTD">
                            Encaste:<br />
                        </td>
                        <td class="FormHeaderTD">
                            Empadre Nac
                        </td>
                    </tr>
                    <tr>
                        <td align="center" class="DataTD">
                            <asp:TextBox ID="txtEdad" runat="server" Width="45px" BackColor="#F0F0F0" BorderColor="#CCCCCC"
                                BorderWidth="1px"></asp:TextBox>
                        </td>
                        <td class="DataTD">
                            <asp:DropDownList ID="ddlUbicacion" runat="server" AppendDataBoundItems="True" CssClass="text"
                                DataTextField="catnom" DataValueField="catcve">
                                <asp:ListItem></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="DataTD">
                            <asp:DropDownList ID="ddlPropiedad" runat="server" AppendDataBoundItems="True" CssClass="text"
                                DataTextField="catnom" DataValueField="catcve">
                                <asp:ListItem></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="DataTD">
                            <asp:DropDownList ID="ddlEncaste" runat="server" AppendDataBoundItems="True" CssClass="text"
                                DataTextField="catnom" DataValueField="catcve">
                                <asp:ListItem></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="DataTD">
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <table align="center" class="FormTABLE" width="820px">
                    <tr>
                        <td class="FormHeaderTD">
                            Pelaje:&nbsp;
                        </td>
                        <td class="DataTD">
                            &nbsp;1
                            <asp:DropDownList ID="ddlPelaje1" runat="server" AppendDataBoundItems="True" CssClass="text"
                                DataTextField="catnom" DataValueField="catcve">
                                <asp:ListItem></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="DataTD">
                            2&nbsp;
                            <asp:DropDownList ID="ddlPelaje2" runat="server" AppendDataBoundItems="True" CssClass="text"
                                DataTextField="catnom" DataValueField="catcve">
                                <asp:ListItem></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="FormHeaderTD">
                            Forma/Pitones:&nbsp;
                        </td>
                        <td class="DataTD">
                            <asp:DropDownList ID="ddlFormaPitones" runat="server" AppendDataBoundItems="True"
                                CssClass="text" DataTextField="catnom" DataValueField="catcve">
                                <asp:ListItem></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="FormHeaderTD">
                            Comentarios:
                        </td>
                        <td class="DataTD" colspan="2" rowspan="8">
                            <asp:TextBox ID="txtComentario" runat="server" Height="195px" TextMode="MultiLine"
                                Width="410px"></asp:TextBox><br />
                        </td>
                        <td class="DataTD" colspan="2" rowspan="8" align="center">
                            <asp:Image ID="imgImagen" runat="server" ImageUrl="~/photos/no_imagen.gif" />
                        </td>
                    </tr>
                    <tr>
                        <td class="DataTD">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="DataTD">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="DataTD">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="DataTD">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="DataTD">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="DataTD">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="DataTD">
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <br />
            </fieldset>
        </div>
        <div class="formulario">
            <fieldset>
                <legend>Estatus</legend>
                <br />
                <table class="FormTABLE" width="820px" align="center">
                    <tr>
                        <td valign="middle" class="FormHeaderTD">
                            Estatus:&nbsp;&nbsp;
                        </td>
                        <td valign="middle">
                            <asp:DropDownList ID="ddlEstatus" runat="server" AppendDataBoundItems="True" DataTextField="catnom"
                                DataValueField="catcve">
                                <asp:ListItem></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="FormHeaderTD">
                            Causa de Muerte:&nbsp;
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlCausaMuerte" runat="server" AppendDataBoundItems="True"
                                DataTextField="catnom" DataValueField="catcve">
                                <asp:ListItem></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="FormHeaderTD">
                            Fecha Baja:
                        </td>
                        <td class="DataTD">
                            &nbsp;<asp:TextBox ID="txtFechaBaja" runat="server" BorderWidth="1px" Width="70px"
                                BackColor="#F0F0F0" BorderColor="#CCCCCC"></asp:TextBox><asp:ImageButton ID="imgBtnCalendar"
                                    runat="server" ImageUrl="~/images/Calendar_scheduleHS.png" CausesValidation="False" /><ajaxToolkit:MaskedEditExtender
                                        ID="MaskedEditExtender2" runat="server" TargetControlID="txtFechaBaja" Mask="99/99/9999"
                                        MaskType="Date" DisplayMoney="Left" AcceptNegative="Left" ErrorTooltipEnabled="True"
                                        CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder="" CultureDateFormat=""
                                        CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                                        CultureTimePlaceholder="" Enabled="True" />
                            <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator2" runat="server" ControlExtender="MaskedEditExtender5"
                                ControlToValidate="txtFechaBaja" EmptyValueMessage="La fecha es requerida" InvalidValueMessage="Fecha Invalida"
                                Display="Dynamic" TooltipMessage="dd/mm/aaaa" EmptyValueBlurredText="*" InvalidValueBlurredMessage="*"
                                ValidationGroup="MKE" ForeColor="Maroon" ErrorMessage="ERROR" /><ajaxToolkit:CalendarExtender
                                    ID="CalendarExtender2" runat="server" TargetControlID="txtFechaBaja" PopupButtonID="imgBtnCalendar"
                                    TodaysDateFormat="dd-MM-yyyy" Enabled="True" />
                        </td>
                    </tr>
                </table>
                <br />
            </fieldset>
        </div>
        <div class="formulario">
            <fieldset>
                <legend>Herencia</legend>
                <br />
                <table align="center" class="FormTABLE" width="820px">
                    <tr>
                        <td class="FormHeaderTD">
                            Fenotipo: &nbsp;
                        </td>
                        <td class="DataTD">
                            <asp:DropDownList ID="ddlFenotipo" runat="server">
                                <asp:ListItem></asp:ListItem>
                                <asp:ListItem Value="2">Madre</asp:ListItem>
                                <asp:ListItem Value="3">Ambos</asp:ListItem>
                                <asp:ListItem Value="4">Ni uno</asp:ListItem>
                                <asp:ListItem Value="5">Padre</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="FormHeaderTD">
                            Comportamiento: &nbsp;
                        </td>
                        <td class="DataTD">
                            <asp:DropDownList ID="ddlComportamiento" runat="server">
                                <asp:ListItem></asp:ListItem>
                                <asp:ListItem Value="2">Madre</asp:ListItem>
                                <asp:ListItem Value="3">Ambos</asp:ListItem>
                                <asp:ListItem Value="4">Ni uno</asp:ListItem>
                                <asp:ListItem Value="5">Padre</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="FormHeaderTD">
                            Marcas: &nbsp; &nbsp;
                        </td>
                        <td class="DataTD">
                            <asp:TextBox ID="txtMarca1" runat="server" BorderWidth="1px" Width="15px"></asp:TextBox>&nbsp;<asp:TextBox
                                ID="txtMarca2" runat="server" BorderWidth="1px" Width="15px"></asp:TextBox>&nbsp;<asp:TextBox
                                    ID="txtMarca3" runat="server" BorderWidth="1px" Width="15px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </fieldset>
            <br />
        </div>
        <br />
        <br />
        <div class="formulario">
            <table align="center" class="FormTABLE" width="820px">
                <tr>
                    <td align="left">
                        <asp:Button ID="btnAgregar" runat="server" CssClass="searchbutton" Text="Agregar" />&nbsp;&nbsp;<asp:Button
                            ID="btnCancelar" runat="server" CssClass="searchbutton" Text="Cancelar" />
                    </td>
                </tr>
            </table>
            <p>
                <asp:HiddenField ID="hfIdPadre" runat="server" Value="0" />
                <asp:HiddenField ID="hfHiePadre" runat="server" />
                <asp:HiddenField ID="hfIdMadre" runat="server" Value="0" />
                <asp:HiddenField ID="hfHieMadre" runat="server" />
            </p>
        </div>
    </div>
</asp:Content>
